<template>
    <ul class="border rounded-md border-solid border-gray-300 mt-3">
        <Item v-for="(item, index) in todos" :key="item.id" :todo="item" :deleteTodo="deleteTodo" :index="index" :updateTodo="updateTodo" class="border-solid border-b border-gray-300 last:border-b-0 pl-2 pr-2"></Item>
    </ul>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import Item from './item.vue';

export default defineComponent({
    components: {
        Item
    },
    setup () {

        return {}
    },
    props: ['todos', 'deleteTodo', 'updateTodo']
})
</script>

<style scoped>

</style>